package goodenglish.interfaces;

import goodenglish.infrastructure.Config;

/**
 * 根据百分得到大小
 * 
 * @author hp
 * 
 */
public class SH {
	public static int getH(int percent) {
		return (Config.SCREEN_HEIGHT - Config.MENU_HEIGHT) * percent / 100;
	}

	public static int getW(int percent) {
		return Config.SCREEN_WIDTH * percent / 100;
	}
}
